package com.zut.subject.domain.convert;

import com.zut.subject.domain.entity.SubjectCategoryBo;
import com.zut.subject.infra.basic.entity.SubjectCategory;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;


//将SubjectCategoryBo类型转化为SubjectCategory类型
@Mapper
public interface ConvertCategory {

    ConvertCategory INSTANCE = Mappers.getMapper(ConvertCategory.class);
    //Bo转化为subjectCategory
    SubjectCategory toSubjectCategory(SubjectCategoryBo subjectCategoryBo);
    //subjectCategory转化为Bo
    List<SubjectCategoryBo> toSubjectCategory(List<SubjectCategory> subjectCategory);

}
